/**
 * 判断当前节点是否匹配查询规则
 */
module.exports = function(node, selector) {
    var p = Element.prototype;
    var f = p.matches || p.webkitMatchesSelector || function(s) {
        return [].indexOf.call(document.querySelectorAll(s), this) !== -1;
    }

    return f.call(node, selector);
}